package com.njlime.sys.repository;

import com.njlime.core.base.repository.impl.BaseDaoImpl;
import com.njlime.sys.entities.Config;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;

@Repository
public class ConfigDaoImpl  extends BaseDaoImpl<Config> {
	Logger logger = Logger.getLogger(ConfigDaoImpl.class);

	/**
	 * 查询配置列表
	 * @return
	 */
	public List<Config> list() {
		StringBuilder sb = new StringBuilder();
		List<Object> arrList = new ArrayList<Object>();
		sb.append("select t.* from t_config t ");
		sb.append("where t.is_del = 0");
		return findList(sb.toString(), arrList);
	}

}
